<?php
$session=new CHttpSession();
$session->open();
$i=$session['i'];

if(!empty($data)) {
    $n=($i%2);
    $class=(($i%12)==1) ? 'C' : 'B';
?>

<li class="a color<?php echo $class;?>"><a href="<?php echo $this->createUrl('job/view', array('id'=>$data->jid));?>"><?php echo $data->title;?></a></li>
<li class="color<?php echo $class;?>"><?php echo $data->number;?>人</li>
<li class="color<?php echo $class;?>"><?php echo $data->stime;?></li>
<li class="color<?php echo $class;?>"><?php echo $data->etime;?></li>
<li class="color<?php echo $class;?>"><?php echo $data->pay;?>RMB</li>
<li class="color<?php echo $class;?>"><?php echo $data->place;?></li>

<?php
}
$session['i']=$i+1;
?>

